import request from '@/utils/request';

export const sendCodeAPI = (mobile: string) => {
  return request({
    url: `/v1_0/sms/codes/${mobile}`,
  });
};

export type LoginFormDataType = {
  mobile: string;
  code: string;
};
export const loginAPI = (data: LoginFormDataType) => {
  return request({
    url: '/v1_0/authorizations',
    method: 'post',
    data,
  });
};
